public class Test {
    public static void main(String[] args) {
        int i = 1;
        while (i <= 100){
            if(i % 3==0&&i % 5==0){
                System.out.println(i);
                i++;
            }
            else {
                i++;
                continue;
            }
        }
    }
    public static void main2(String[] args) {
        int num = 100;
        while (num <= 200) {
            if (num % 3 != 0) {
                num++; // 这里的 ++ 不要忘记! 否则会死循环.
                continue;
            }
            System.out.println("找到了 3 的倍数, 为:" + num);
            num++;
        }
    }

    public static void main1(String[] args) {
        int j = 1;
        int ret = 0;
        while (j <= 5) {
            int i = 1;
            int result = 1;
            while (i <= j) {
                result = result * i;
                i++;
            }
            ret = ret + result;
            j++;
        }
        System.out.println(ret);
    }
}